import 'package:flutter/material.dart';
import 'package:osc/ui/pages/user/user_friend_list.dart';
import 'package:osc/ui/widgets/common_scaffold.dart';


///朋友列表
class FriendListPage extends StatelessWidget {
  final int userId;
  final int relation;

  /// relation 0-粉丝|1-关注的人
  const FriendListPage({Key key, this.userId, this.relation}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return CommonScaffold(
      title: relation == 0? "粉丝" : "关注",
      body: UserFriendList(relation: relation, userId: userId,),
    );
  }
}
